package com.lzq.open.feign.controller;

import com.lzq.common.dto.Response;
import com.lzq.open.feign.client.MockClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/boutique/productMg")
@Slf4j
public class FeignController {
    @Autowired
    private MockClient mockClient;

    @GetMapping("/getMessage")
    public String getMessage() {
        String str = mockClient.getMessage();
        log.info(str);
        return str;
    }
}
